<p class="breadcrumbs"><strong>You are here:</strong> &raquo; <a href="<?php echo $gene_uri ?>"><?php _e($gene_name) ?></a> &raquo; Create an Account</p>

<h2>Create an Account</h2>

<?php if ($errormsg): ?>
	<p class="errormessage"><?php _e($errormsg) ?></p>
<?php endif; ?>

<form method="post" id="accountform" action="<?php echo Gene::makeLink(Gene::specialId('Register')) ?>">

<p>Please ensure you fill in all the fields accurately and fully.</p>

<?php if ($require_confirm): ?>
	<input type="hidden" name="confirmcode" value="<?php _e($confirmed['confirm_key']) ?>" />
	<input type="hidden" name="confirmemail" value="<?php _e($confirmed['email']) ?>" />
<?php endif; ?>

<div class="<?php echo cycle(array('row1','row2')) ?>">
<p class="fieldlabel"><label for="regemail">Your E-Mail Address:</label></p>
<?php if ($require_confirm): ?>
	<p class="fielddescription">This e-mail address has been successfully confirmed.</p>
	<p class="field"><em><?php _e($confirmed['email']) ?></em></p>
<?php else: ?>
	<p class="fielddescription">This must be a real e-mail address. If you forget your password in the future, it'll be sent to this address.</p>
	<p class="field"><input type="text" id="regemail" name="regemail" value="<?php _e($email) ?>" class="required" /></p>
<?php endif; ?>
</div>

<div class="<?php echo cycle(array('row1','row2')) ?>">
<p class="fieldlabel">Password:</p>

<p class="fielddescription"><label for="regpassword">Select a password:</label></p>
<p class="field"><input type="password" id="regpassword" name="regpassword" value="<?php _e($password) ?>" class="required" /></p>

<p class="fielddescription"><label for="regpassword2">Confirm password by typing again:</label></p>
<p class="field"><input type="password" id="regpassword2" name="regpassword2" value="<?php _e($password2) ?>" class="required" /></p>
</div>

<div class="<?php echo cycle(array('row1','row2')) ?>">
<p class="fieldlabel"><label for="regname">Public Name:</label></p>
<p class="fielddescription">Select a name which other users should know you by. This can be your real name or a nickname.</p>
<p class="field"><input type="text" id="regname" name="regname" value="<?php _e($name) ?>" class="required" /> <span id="checkname"></span></p>
</div>

<?php if ($captcha): ?>
	<div class="<?php echo cycle(array('row1','row2')) ?>">
	<p class="fieldlabel"><label for="regcode">Please type what you see:</label></p>
	<p class="fielddescription" id="newcaptcha">If you cannot read the text in the image above, you can <a href="#" onclick="javascript:var d = new Date();$('captcha').src='<?php echo Gene::makeLink(Gene::specialId('Register')) ?>/captcha?'+d.getTime();return false;">request another image</a>.</p>
	<p class="field"><img id="captcha" src="<?php echo Gene::makeLink(Gene::specialId('Register')) ?>/captcha" alt="" /></p>
	<p class="field"><input type="text" id="regcode" name="regcode" class="required" style="width: 198px;" autocomplete="off" /></p>
	</div>
<?php endif; ?>

<?php if ($config['regShowTerms']): ?>
	<div class="<?php echo cycle(array('row1','row2')) ?>">
	<p class="fieldlabel">Terms of Service:</p>
	<p class="fielddescription">You must read and agree to the terms of service before continuing.</p>
	
	<p class="fielddescription"><img src="<?php echo $ui['images'] ?>important.png" alt="" style="float: left;" /></p>
	<div class="terms"><?php echo $config['regTerms'] ?></div>
	
	<p class="field"><input type="checkbox" id="terms" name="terms" value="I have read and agree to the Terms of Service." /> <label for="terms">I have read and agree to the Terms of Service.</label></p>
	</div>

<?php endif; ?>

<p class="formcontrols"><input type="submit" value="Create My Account" class="btn_focus" /></p>

</form>